#!/bin/bash
string="runoob is a great site"
echo ${string:1:7}
#从第2个字符开始截取7个字符
